package com.hyq.builder;

import java.util.ArrayList;
import java.util.List;

/**
* @ClassName: Director 
* @Description: 游戏模式管理者
* @author Janus
 */
public class Director {
	private List<String> sequence = new ArrayList();
	
	private PlayerZhangSan zsPlayer = new PlayerZhangSan();
	
	private PlayerLiSi lsPlayer = new PlayerLiSi();
	/**
	* @Title: getAGame 
	* @Description: 获取游戏模式A类型的执行顺序
	* @param @return    设定文件 
	* @return GamePeakednessA    返回类型 
	* @throws
	 */
	public GamePeakednessA getAGame(){
		this.sequence.clear();
		this.sequence.add("upgrade");
		this.sequence.add("equipment");
		this.sequence.add("equipmentUp");
		this.sequence.add("fightBoss");
		this.lsPlayer.setSequence(sequence);
		return (GamePeakednessA) this.lsPlayer.getGameServer();
	}
	/**
	* @Title: getBGame 
	* @Description: 获取游戏模式B类型的执行顺序
	* @param @return    设定文件 
	* @return GamePeakednessB   返回类型 
	* @throws
	 */
	public GamePeakednessB getBGame(){
		this.sequence.clear();
		this.sequence.add("upgrade");
		this.sequence.add("equipment");
		this.sequence.add("equipmentUp");
		this.sequence.add("fightBoss");
		this.zsPlayer.setSequence(sequence);
		return (GamePeakednessB) this.zsPlayer.getGameServer();
	}
}
